package com.heima.api;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmChannel;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * 通道装客户端
 *
 * @author DiXiaoNie
 * @date 2023/01/06
 * @since 2023/1/6 14:45
 */
@FeignClient("leadnews-wemedia")
public interface ChannelFeignClient {


    /**
     * 查询频道列表
     *
     * @return {@link ResponseResult }
     * @author DiXiaoNie
     * @date 2023/01/06
     */
    @GetMapping("/api/v1/channel/channels")
    public ResponseResult<List<WmChannel>> channels();

}
